package team.kirohuji.service.user;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import team.kirohuji.domain.user.User;
import team.kirohuji.repository.jpa.user.UserRepository;

/**
 * 权限服务实现类
 * 
 * @author kirohuji
 *
 */
@Service("userService")
public class UserServiceImpl implements UserService {

	@Autowired
	private UserRepository userRepository;

	@Override
	public User queryByLoginName(String username) {
		return userRepository.queryByLoginName(username);
	}
}
